package com.scope.activities;

import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.scope.customViews.CustomView;

/**
 * Created by Samrith on 10/31/13.
 */
public abstract class CustomActivity extends FragmentActivity implements CustomView.IAccent{
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        CustomView.FreqLog.InitializingViews(this);
        initializeViews(savedInstanceState);
        CustomView.FreqLog.InitializedViews(this);
        positionViews();
    }

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        CustomView.FreqLog.PositioningViews(this);
        positionViews();
        CustomView.FreqLog.PositionedViews(this);
    }

    protected abstract void initializeViews(Bundle savedInstanceState);

    protected abstract void positionViews();

    public final static String CURR_PATH = "CP";
    public final static String SELECTED_PATH = "SP";

    protected int mAccent;
    public int getAccent() {
        return mAccent;
    };

    public abstract void setAccent(int accent);
}
